package com.bjpowernode.money.mapper;

import com.bjpowernode.money.model.FinanceAccount;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface FinanceAccountMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FinanceAccount record);

    int insertSelective(FinanceAccount record);

    FinanceAccount selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FinanceAccount record);

    int updateByPrimaryKey(FinanceAccount record);

    //头部个人信息下拉页面 根据用户的id查询对应的剩余金额
    FinanceAccount selectFinanceAccountByUserId(Integer uid);

    //投资页面 账户余额减少
    int updateAvailableMoneyReduceByUserIdForInvest(Map<String, Object> parasMap);
}